<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Global Image - Nova &Aacute;rea de Atua&ccedil;&atilde;o</title>
            <link rel="stylesheet" type="text/css" href="/globalimage2/faces/jsfcrud.css" /><%@ include file="/WEB-INF/jspf/AjaxScripts.jspf" %><script type="text/javascript" src="/globalimage2/faces/jsfcrud.js"></script>
        </head>
        <body>
            <%@include file="../../WEB-INF/jspf/header/head.jspf"%>
            <div style="float:left">
                <%@include file="../../WEB-INF/jspf/header/menuDinamico.jspf"%>
            </div>
            <div id="div_content">
                <h:form>
                    <h3>&Aacute;rea de atua&ccedil;&atilde;o</h3>
                    
                    <h:commandLink action="#{areaAtuacao.create}" value="Salvar"/>&nbsp;|&nbsp;
                    <h:commandLink action="#{areaAtuacao.listSetup}" value="Exibir todos" immediate="true"/>
                    
                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>
                    

                    <h:inputHidden id="validateCreateField" validator="#{areaAtuacao.validateCreate}" value="value"/>
                    <h:panelGrid columns="2">
                        <h:outputText value="Nome:"/>
                        <h:inputText id="nome" value="#{areaAtuacao.areaAtuacao.nome}" maxlength="254" size="50" title="Nome" required="true" requiredMessage="É necessário o campo nome." />
                        <%-- <h:outputText value="EmpresaCollection:"/>
                        <h:selectManyListbox id="empresaCollection" value="#{areaAtuacao.areaAtuacao.jsfcrud_transform[jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method.collectionToArray][jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method.arrayToList].empresaCollection}" title="EmpresaCollection" size="6" converter="#{empresa.converter}" >
                            <f:selectItems value="#{empresa.empresaItemsAvailableSelectMany}"/>
                        </h:selectManyListbox>--%>
                    </h:panelGrid>
                </h:form>
            </div>
        </body>
    </html>
</f:view>
